import { ref } from 'vue'
import request from '@/utils/request.js'
export const courseList = () => {
   //  return request.get('/course/getList')
   return request.get('/course/getCourseList')
}
export const courseUserIdList = () => {
   //  return request.get('/course/getList')
   return request.get('/course/getCourseListUserId')
}
export const courseNameList = (courseName) => {
   return request.get('/course/selectCourceListByName/' + courseName)
}
//  export const courseIdList =(directionId)=>{
//     return request.get('/course/selectListDirectionId/'+directionId)
//  } 
export const directionList = () => {
   return request.get('/direction/select')
}
export const aaaaa = () => {
   return request.get('/user/select')
}

 //查询专业课程
export const professional=()=>{
   return request.get("/course/listProfessional")
}

//查询专业方向
export const  direction=()=>{
   return request.get("/course/listDirection")
}

//创建课程
export const  saveCourse=(course)=>{
   return request.post("/course/save",course)
}

export const selectTaskManagerList = () => {
   return request.get('/TaskManager/GetTaskManagerList')
}
export const selectClassList = () => {
   return request.get('/ClassTable/selectListClass')
}
export const BytwoIdGetTaskManagerList = (classId) => {
   return request.get('/TaskManager/getClassIdByList?classId=' + classId)
}

export const updateTaskList = (updataList) => {
   return request.post('/TaskManager/updateTaskManger', updataList)
}
